//引入请求组件
import http from "../utils/http2.js"


//查询供应商列表
export function querySupplier(data) {
  return http.put("/api/supplier/list", data);
}

//保存供应商列表
export function saveSupplier(data) {
  return http.post("/api/supplier", data);
}

//更新供应商
export function updateSupplier(data){
  return http.put("/api/supplier", data);
}

//删除供应商
export function deleteSupplier(id){
  return http.delete("/api/supplier", id);
}

//根据id查找供应商相关信息
export function querySupplierById(id){
  return http.get("/api/supplier",{id})
}

//重置当前行的供应商的用户密码
export function resetPassword(id){
  return http.get("/api/supplier/resetPwd",{id})
}

